package com.lcredu.bean;

/**
 * @author 黎长容
 * @date 2025-07-12 22:32
 */
public class House {
    private String name;

    public House() {
        System.out.println("---------------------");
        System.out.println("House() 构造器");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("House setName()..." + name);
        this.name = name;
    }

    //初始化
    public void init() {
        System.out.println("House init()..");
    }

    //销毁
    public void destory() {
        System.out.println("House destory()..");
    }

    @Override
    public String toString() {
        return "House{" +
                "name='" + name + '\'' +
                '}';
    }
}
